package HomeWork2;

public class CellPhone {
    private String phone;
    private String message;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public CellPhone() {
    }

    public CellPhone(String phone, String message) {
        this.phone = phone;
        this.message = message;
    }

    public void CallPhone(){
        System.out.println("可以打电话"+phone);
    }
    public void SendMessage(){
        System.out.println("可以发短信"+message);
    }
}
